package com.etc.drug.mapper;

import com.etc.drug.entity.Doctor;
import com.etc.drug.entity.Prescription;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PrescriptionMapper {

    List<Prescription> queryByOsId(String osId);

    Integer insert(String prescriptionId, String osId, String auditorId, String prescriptionUsage,
                     Integer examine, Integer statue);

    List<Prescription> queryByDocId(String docId);

    Integer update(Prescription prescription);

    Integer updateStatus(String prescriptionId, Integer examine ,Integer statue);

    List<Doctor> queryDrugDoc();
}
